<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<center>
    <TABLE border="1">
        <tr>
            <th>歌曲编号</th>
            <th>歌手编号</th>
            <th>歌曲名称</th>
            <th>歌曲路径</th>
            <th>操作</th>
        </tr>
        <tr th:each=" song: ${songList}">
            <td th:text="${song.songId}"></td>
            <td th:text="${song.singerId}"></td>
            <td th:text="${song.name}"></td>
            <td th:text="${song.location}"></td>
            <td>
                <form action="updatesonghtml" method="post">
                    <input type="hidden" name="soId" th:value="${song.songId}" />
                    <input type="submit" value="修改">
                </form>
                <form action="deletesong" method="post">
                    <input type="hidden" name="id" th:value="${song.songId}" />
                    <input type="submit" value="删除">
                </form>
            </td>
        </tr>
    </TABLE>
    <a href="songadd.html" style="text-decoration: none">点击增加歌曲</a>
</center>
</body>
</html>